﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mindfor.Web
{
	/// <summary>
	/// Marks controller action as widget.
	/// </summary>
	public class WidgetAttribute : Attribute
	{
		/// <summary>
		/// Gets or sets widget name. Must be unique within module.
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// Marks controller action as widget.
		/// </summary>
		/// <param name="name">Widget name. Must be unique within module.</param>
		public WidgetAttribute(string name)
		{
			Name = name;
		}
	}
}
